package com.wen.es.utils;

/**
 * String datatype
 * string
 * Numeric datatypes
 * long, integer, short, byte, double, float
 * Date datatype
 * date
 * Boolean datatype
 * boolean
 * Binary datatype
 * binary
 * Created by LAIO on 2018/6/30.
 */
public class EsConstants {
    /**
     * String datatype
     * string
     */
    public static final String TYPE_STRING = "string";

    /**
     * Numeric datatypes
     * long
     */
    public static final String TYPE_LONG = "long";

    /**
     * Numeric datatypes
     * double
     */
    public static final String TYPE_DOUBLE = "double";

    /**
     * Date datatype
     * date
     */
    public static final String TYPE_DATE = "date";
    /**
     * Nested datatypeedit
     * The nested type is a specialised version of the object datatype that allows
     * arrays of objects to be indexed and queried independently of each other.
     */
    public static final String TYPE_NESTED = "nested";


    /**
     * 父子
     */
    public static final String TYPE_CHILD = "child";

    /**
     * not_analyzed
     * Add the field value to the index unchanged, as a single term.
     * This is the default for all fields that support this option except
     * for string fields. not_analyzed fields are usually used with
     * term-level queries for structured search.
     */
    public static final String INDEX_NOT_ANALYZED = "not_analyzed";

    /**
     * analyzed
     * This option applies only to string fields, for which it is the default.
     * The string field value is first analyzed to convert the string into terms
     * (e.g. a list of individual words), which are then indexed. At search time,
     * the query string is passed through (usually) the same analyzer to generate
     * terms in the same format as those in the index. It is this process that
     * enables full text search.
     */
    public static final String INDEX_ANALYZED = "analyzed";

    /**
     * no
     * Do not add this field value to the index. With this setting, the field will not be queryable.
     */
    public static final String INDEX_NO = "no";

    /**
     * es关键字
     */
    public static final String KEY_MAPPINGS = "mappings";
    /**
     * es关键字
     */
    public static final String KEY_TYPE = "type";
    /**
     * es关键字
     */
    public static final String KEY_INDEX = "index";
    /**
     * es关键字
     */
    public static final String KEY_PROPERTIES = "properties";
    /**
     * es关键字
     */
    public static final String KEY_FORMAT = "format";
    /**
     * es关键字
     */
    public static final String KEY__PARENT = "_parent";


}
